import React from "react";
import {Button, Text, View} from "react-native";
import {Actions} from "react-native-router-flux";

export default class AuctionDetail extends React.Component
{
  // 构造函数，可执行初始化操作
  constructor(props, context)
  {
    super(props, context);
  }

  // 组件被加载时
  componentDidMount()
  {

  }

  // 组件即将被卸载时
  componentWillUnmount()
  {

  }

  render()
  {
    return (
        <View style={{flex: 1}}>
      <Text>{this.props.name}</Text>
      <Button
      title="点击返回拍卖列表界面"
      onPress={this._clickButton.bind(this)}/>
      </View>
    );
  }

  _clickButton()
  {
      Actions.pop();
  }
}
